package com.itheima.answerquestion;

public class Question {
    public static void main(String[] args) {
//        byte ->Byte
//        int ->Integer
//        short->Short
//        char ->Character
//        float ->Float
//        double ->Double
//        boolean ->Boolean
//        long ->Long
            String s1="2";
            char s2='2';
            String s3="true";
        Byte aByte = Byte.valueOf(s1);
        byte b = Byte.parseByte(s1);
        Byte bb=b;
        byte bbb=bb;

        Integer integer = Integer.valueOf(s1);
        int i = Integer.parseInt(s1);
        Integer ii=i;
        int iii=ii;

        Short aShort = Short.valueOf(s1);
        short i1 = Short.parseShort(s1);
        Short ss=i1;
        short sss=ss;

        Character character = Character.valueOf(s2);
        char c=character;
        Character cc=c;

        Long aLong = Long.valueOf(s1);
        long l = Long.parseLong(s1);
        Long ll=l;
        long lll=ll;

        Float aFloat = Float.valueOf(s1);
        float v = Float.parseFloat(s1);
        Float f=v;
        float ff=f;

        Double aDouble = Double.valueOf(s1);
        double v1 = Double.parseDouble(s1);
        Double d=v1;
        double dd=d;

        Boolean aBoolean = Boolean.valueOf(s3);
        boolean b1 = Boolean.parseBoolean(s3);
        Boolean b2=b1;
        boolean b3=b2;

    }
}
